<template>
  <!-- 全局配置 主题 -->
  <n-config-provider :theme-overrides="appStore.themeOverrides">
    <!-- 加载条 -->
    <n-loading-bar-provider>
      <LoadingBar />
      <!-- 对话框 -->
      <n-dialog-provider>
        <DialogContent />
        <!-- 从浏览器顶部降下来的神谕。 -->
        <n-message-provider>
          <MessageContent />
          <slot></slot>
        </n-message-provider>
      </n-dialog-provider>
    </n-loading-bar-provider>
  </n-config-provider>
</template>

<script setup>
import MessageContent from './MessageContent.vue'
import DialogContent from './DialogContent.vue'
import LoadingBar from './LoadingBar.vue'

// 获取主题
import { useAppStore } from '@/store/modules/app'
const appStore = useAppStore()
</script>
